#!/bin/bash

while :
do
read -p "请输入你的用户名:" u_name

if [[ `echo $u_name|wc -L` > 0 ]]
then
	 id $u_name &>/dev/null &&echo "$u_name is exist"||useradd $u_name
	break
fi
done
